
@echo off
cls

set PATH_PRODUCT=%~1
set PATH_LIB_PRODUCT=%~2
set BUILD_DIR=%~3
set ADDRESSMODEL=%~4
set GENERATOR=%~5
set TOOLSET=%~6
set B2DIR=%~7



rem -------------------------------------------

echo Build %ADDRESSMODEL% bits
  %B2DIR%\b2 -j 8 ^
  --prefix=%PATH_PRODUCT%^
  --libdir=%PATH_LIB_PRODUCT%32^
  --build-dir=%BUILD_DIR%^
  --debug-configuration^
  variant=debug,release^
  link=static^
  threading=multi^
  address-model=%ADDRESSMODEL%^
  runtime-link=shared^
  toolset=%GENERATOR%-%TOOLSET%^
  install

